package design.test3Factory.abstractfactory;

import org.junit.Test;

public class ClientTest {

	@Test
	public void test() {
		AbstractFactory factory1=new HuaWeiFactory();
		factory1.createCpu().createCpu();
		factory1.createRam().createRam();
		System.out.println("-------->");
		AbstractFactory factory2=new XiaoMiFactory();
		factory2.createCpu().createCpu();
		factory2.createRam().createRam();
	}

}